<input id="userName" type="text">用户名</input>

<input id="userPassword" type="text">密码</input>

<input id="login" type="button" onclick="login()" value="登录">
<input id="login" type="button" onclick="cancel()" value="取消">

<script type="text/javascript">
    var base = document.getElementById("basePath").href;
    function login() {
        var url = "/firstpage";
        window.location.href = url;
    }

    function cancel() {
        $.ajax({
                type:'post',
                url:"/crawlIwjwHot",
                data:'',
                dataType:'json',
                contentType:'application/json;charset=utf-8',
                success:function (data) {

        }});
    }


</script>